home *** CD-ROM | disk | FTP | other *** search
- var §\x01§ = 820;
- while(true)
- {
- if(eval("\x01") == 820)
- {
- set("\x01",eval("\x01") - 473);
- §§push(true);
- }
- else
- {
- if(eval("\x01") == 393)
- {
- set("\x01",eval("\x01") - 330);
- break;
- }
- if(eval("\x01") == 535)
- {
- set("\x01",eval("\x01") - 116);
- break;
- }
- if(eval("\x01") == 347)
- {
- set("\x01",eval("\x01") + 570);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 697);
- }
- }
- else
- {
- if(eval("\x01") == 61)
- {
- set("\x01",eval("\x01") + 466);
- break;
- }
- if(eval("\x01") == 542)
- {
- set("\x01",eval("\x01") - 481);
- if(§§pop())
- {
- set("\x01",eval("\x01") + 466);
- }
- }
- else if(eval("\x01") == 527)
- {
- set("\x01",eval("\x01") - 315);
- §§push(true);
- }
- else if(eval("\x01") == 212)
- {
- set("\x01",eval("\x01") + 532);
- if(§§pop())
- {
- set("\x01",eval("\x01") + 70);
- }
- }
- else if(eval("\x01") == 571)
- {
- set("\x01",eval("\x01") - 29);
- §§push(true);
- }
- else if(eval("\x01") == 732)
- {
- set("\x01",eval("\x01") - 197);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 116);
- }
- }
- else if(eval("\x01") == 338)
- {
- set("\x01",eval("\x01") + 150);
- if(§§pop())
- {
- set("\x01",eval("\x01") + 83);
- }
- }
- else
- {
- if(eval("\x01") == 744)
- {
- set("\x01",eval("\x01") + 70);
- break;
- }
- if(eval("\x01") == 419)
- {
- set("\x01",eval("\x01") - 81);
- §§push(true);
- }
- else
- {
- if(eval("\x01") == 488)
- {
- set("\x01",eval("\x01") + 83);
- §§push(§§pop()());
- break;
- }
- if(eval("\x01") == 63)
- {
- set("\x01",eval("\x01") + 669);
- §§push(true);
- }
- else if(eval("\x01") == 987)
- {
- set("\x01",eval("\x01") - 594);
- if(§§pop())
- {
- set("\x01",eval("\x01") - 330);
- }
- }
- else
- {
- if(eval("\x01") != 220)
- {
- if(eval("\x01") == 814)
- {
- set("\x01",eval("\x01") - 7);
- stop();
- lap_txt = "";
- jun_txt = "";
- CAR_MAX = _parent.CAR_MAX;
- spec_speed_max = [18,19,18.5,18,17,15,13,14];
- spec_speed_add = [0.5,0.5,0.55,0.6,0.55,0.55,0.5,0.45];
- spec_dakaku_max = [6,6.5,7,7.5,8,8,8,8];
- spec_dakaku_add = [1,1,1,1,1,1,1,1];
- route_max = 0;
- i = 99;
- while(i >= 0)
- {
- if(route[i] < 0)
- {
- route_max = i;
- }
- i--;
- }
- cel = new Array(celmax);
- i = 0;
- while(i < celmax)
- {
- cel[i] = 0;
- i++;
- }
- i = 0;
- while(i < route_max)
- {
- x = Math.floor(route[i] % xmax);
- y = Math.floor(route[i] / xmax);
- cel[y * xmax + x] = 1 + i;
- i++;
- }
- i = 0;
- while(i < 100)
- {
- mc = eval("mcRot.mcField.mcPiece" + i);
- r = route[i];
- if(r < 0)
- {
- mc._visible = false;
- }
- else
- {
- mc._visible = true;
- mc._x = 200 * Math.floor(r % xmax);
- mc._y = 200 * Math.floor(r / xmax);
- bef = route[route_max - 1];
- if(i > 0)
- {
- bef = route[i - 1];
- }
- aft = route[0];
- if(i < route_max - 1)
- {
- aft = route[i + 1];
- }
- p = 1;
- if(bef == r - xmax || aft == r - xmax)
- {
- p += 1;
- }
- if(bef == r + 1 || aft == r + 1)
- {
- p += 2;
- }
- if(bef == r + xmax || aft == r + xmax)
- {
- p += 4;
- }
- if(bef == r - 1 || aft == r - 1)
- {
- p += 8;
- }
- mc.gotoAndStop(p);
- }
- i++;
- }
- sx = route[0] % xmax;
- sy = Math.floor(route[0] / xmax);
- gx = route[route_max - 1] % xmax;
- gy = Math.floor(route[route_max - 1] / xmax);
- d = Math.atan2(sx - gx,- (sy - gy));
- k = 180 * d / 3.141593;
- mc = mcRot.mcField.mcGoal;
- mc._x = mcRot.mcField.mcPiece0._x + 100;
- mc._y = mcRot.mcField.mcPiece0._y + 100;
- mc._rotation = k;
- i = 0;
- while(i < CAR_MAX)
- {
- mc = eval("mcRot.mcField.mcCar" + i);
- mc.dest = 0;
- n = route[mc.dest];
- mc.dx = Math.floor(n % xmax) * 200 + 50 + Math.random() * 100;
- mc.dy = Math.floor(n / xmax) * 200 + 50 + Math.random() * 100;
- ax = (gx - sx) * 80;
- ay = (gy - sy) * 80;
- a = i;
- if(i == 0)
- {
- a = CAR_MAX;
- }
- a += 1;
- mc._x = sx * 200 + 100 + ax * a;
- mc._y = sy * 200 + 100 + ay * a;
- mc.gotoAndStop(1 + i);
- mc._rotation = k;
- mc.dakaku = 0;
- mc.dakaku_max = spec_dakaku_max[i];
- mc.speed = 0;
- mc.speed_max = spec_speed_max[i];
- mc.speed_add = spec_speed_add[i];
- mc.lap_cnt = 0;
- mc.hit = 0;
- mc.pos = -1;
- mc.cp = new Array(celmax);
- j = 0;
- while(j < celmax)
- {
- mc.cp[j] = 0;
- j++;
- }
- mc.cp_cnt = route_max;
- mc.run = 0;
- mc.finish_time = 0;
- i++;
- }
- mcRot._x = 200;
- mcRot._y = 200;
- mcRot._xscale = 12.5;
- mcRot._yscale = 12.5;
- x1 = 999;
- x2 = -1;
- y1 = 999;
- y2 = -1;
- i = 0;
- while(i < ymax)
- {
- j = 0;
- while(j < xmax)
- {
- if(cel[i * xmax + j] > 0)
- {
- if(j < x1)
- {
- x1 = j;
- }
- if(j > x2)
- {
- x2 = j;
- }
- if(i < y1)
- {
- y1 = i;
- }
- if(i > y2)
- {
- y2 = i;
- }
- }
- j++;
- }
- i++;
- }
- mcRot.mcField._x = -200 * (x2 + x1) / 2;
- mcRot.mcField._y = -200 * (y2 + y1) / 2;
- _parent.mcBGM.gotoAndStop("view");
- onEnterFrame = function()
- {
- mcRot._rotation += 0.5;
- };
- break;
- }
- if(eval("\x01") == 917)
- {
- set("\x01",eval("\x01") - 697);
- }
- break;
- }
- set("\x01",eval("\x01") + 767);
- §§push(true);
- }
- }
- }
- }
- }
- }
-